package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon") //告诉springcloud这个接口是一个远程客户端.  gulimall-coupon为要调用的远程服务名
public interface CouponFeignService {
    //声明要调用远程服务的方法
    @RequestMapping("/coupon/coupon/member/list")
    public R memberCoupons();
}
